﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace COMCardmanager
{
    /// <summary>
    /// define an interface to provide PC and CG read operations
    /// </summary>
    [ComVisible(true)]
    [Guid("5801C297-ED98-4a97-904B-4242CAB0447D")]
    [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
    public interface ICard
    {
        /// <summary>
        /// read an automobile registration chip
        /// </summary>
        /// <returns>data in json format</returns>
        [DispId(1)]
        String readCG(bool isDumped = true);
        /// <summary>
        /// read a driver license chip
        /// </summary>
        /// <returns>data in json format</returns>
        [DispId(2)]
        String readPC(bool isDumped = true);
        /// <summary>
        /// define xml configuration file to use by SDK
        /// </summary>
        /// <param name="szFilename">full path to xml configuration file for SDK</param>
        [DispId(3)]
        void setConfigToLoad(String szFilename);
    }
}
